package cn.kuporo.seckill.user.infrastructure.repository;

import cn.kuporo.seckill.common.model.response.Response;
import cn.kuporo.seckill.user.domain.model.SeckillUser;
import cn.kuporo.seckill.user.domain.repository.SeckillUserRepository;
import cn.kuporo.seckill.user.infrastructure.mapper.SeckillUserMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @author: kuporo
 * @since: 2025/7/7
 * @description:
 */
@Component
@RequiredArgsConstructor
public class SeckillUserRepositoryImpl implements SeckillUserRepository {
    private final SeckillUserMapper seckillUserMapper;

    @Override
    public SeckillUser getSeckillUserByUserName(String userName) {
        return seckillUserMapper.getSeckillUserByUserName(userName);
    }

    @Override
    public SeckillUser queryUserInfo(long userId) {
        return seckillUserMapper.queryUserInfo(userId);
    }
}
